package com.vip.service.action.impl;

import com.vip.dao.action.dao.SysOperLogDao;
import com.vip.dao.action.domain.SysOperLog;
import com.vip.service.action.SysOperLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class SysOperLogServiceImpl implements SysOperLogService {

    @Autowired
    SysOperLogDao sysOperLogDao;

    @Override
    public SysOperLog addOneOperLog(SysOperLog sysOperLog) {
        return sysOperLogDao.save(sysOperLog);
    }

    @Override
    public List<SysOperLog> findAllLog() {
        return sysOperLogDao.findAll();
    }


    @Override
    public void deleteById(Long id) {
        sysOperLogDao.deleteById(id);
    }
}
